package com.yeyks.common.appcommon.dto.order;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author: dagny
 * @date: 2019/8/12 0012 15:28
 */
@ApiModel(description = "抢单信息DTO")
@Data
public class AppGrabOrderDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户发布时间")
    @NotNull(message = "用户发布时间不能为空")
    private Long timestamp;

    @ApiModelProperty(value = "对应的操作用户ID")
    @NotNull(message = "对应的操作用户id不能为空")
    private Integer userId;

    @ApiModelProperty(value = "对应的操作用户手机号")
    private String phone;

    @ApiModelProperty(value = "酒店ID")
    @NotNull(message = "酒店id不能为空")
    private Integer hotelId;

    @ApiModelProperty(value = "操作人ID")
    @NotNull(message = "操作人id不能为空")
    private Integer operatorId;

    @ApiModelProperty(value = "房间ID")
    @NotNull(message = "房间id不能为空")
    private List<Integer> roomIds;

    @ApiModelProperty(value = "用户出价")
    @NotNull(message = "用户出价不能为空")
    private Integer userShowPrice;

    @ApiModelProperty(value = "入住时间")
    @NotNull(message = "入住时间不能为空")
    private Long checkIn;

    @ApiModelProperty(value = "离店时间")
    @NotNull(message = "离店时间不能为空")
    private Long checkOut;

    @ApiModelProperty(value = "0:自动  1：手动")
    private Integer manualPickOrder = 1;

    @ApiModelProperty(value = "开始计时时间")
    private Date startTime;

    @ApiModelProperty(value = "维持时间（单位秒）")
    private Integer keepTime;

    @ApiModelProperty(value = "抢单状态，0 未抢单 1 已抢单")
    private Integer status;

    @ApiModelProperty(value = "yyks:平台   cn:龙腾 ")
    private String sourceType;

    private String soureHotelId;

    private String sourceRoomId;

}
